import request from '@/util/request.js';

/**
 * @description 限时免单
 * @param {Object} data
 */
export function getBusinessListApi(data) {
	return request({
		url: '/business/getIsPickActivityList',
		method: 'GET',
		data
	})
}
/**
 * @description 消费多少送多少
 * @param {Object} data
 */
export function getUserBusinessListApi(data) {
	return request({
		url: '/business/getUserBusinessList',
		method: 'GET',
		data
	})
}
/**
 * @description 立即预约
 * @param {Object} data
 */
export function reservationActivity(data) {
	return request({
		url: '/consumptionOrder/reservationConsumptionOrder',
		method: 'post',
		data
	})
}
/**
 * @description 我的卡券
 * @param {Object} data
 */
export function getMyCardListApi(data) {
	return request({
		url: '/consumptionOrder/queryMyConsumptionVoucher',
		method: 'GET',
		data
	})
}
/**
 * @description 订单分类
 * @param {Object} data
 */
export function getMenuListApi(data) {
	return request({
		url: '/consumptionOrder/getClassificationConfig',
		method: 'GET',
		data
	})
}
/**
 * @description 核销订单
 * @param {Object} data
 */
export function getBusinessInfoBycode(data) {
	return request({
		url: '/consumptionOrder/getBusinessInfoBycode',
		method: 'GET',
		data
	})
}
/**
 * @description 分享券接收
 * @param {Object} data
 */
export function handleShareConsumerCoupon(data) {
	return request({
		url: '/consumptionOrder/handleShareConsumerCoupon',
		method: 'post',
		data
	})
}